package cn.edu.njnu.opengmpback.Modeling.entity;

import cn.hutool.core.util.IdUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Author: DiChen
 * @CreateTime: 2024-08-16
 * @Description: 概念建模素材实体类
 * @Version: 1.0
 */

@Data
@Document
public class ConceptMaterial {
    @Id
    @ApiModelProperty(value = "id",hidden = true)
    String id= IdUtil.objectId();

    private String name;
    private String description;
    private boolean publicBoolean = true;

    String creatorId;
    String creatorName;
    String creatorEmail;

    String materialStoreName; //素材名字
    String materialWebAddress; //素材存储地址
    String materialRelativePath; //素材相对路径
    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    Date createTime=new Date(); //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    Date updateTime=new Date(); //创建时间
}
